#include "graver/configuration/version.h"

#include <cstdlib>

#include "graver/configuration/configuration.h"

namespace graver {
int get_graver_version_major() {
    return static_cast<int>(strtol(GRAVER_VERSION_STR2(GRAVER_VERSION_MAJOR), nullptr, 10));
}
int get_graver_version_minor() {
    return static_cast<int>(strtol(GRAVER_VERSION_STR2(GRAVER_VERSION_MINOR), nullptr, 10));
}
int get_graver_version_patch() {
    return static_cast<int>(strtol(GRAVER_VERSION_STR2(GRAVER_VERSION_PATCH), nullptr, 10));
}
};  // namespace graver